package com.atwulidun.strategy21;

public interface Quack {
    void quack();
}

// 具体实现类
class GaGaQuack implements Quack{
    @Override
    public void quack() {
        System.out.println("鸭子嘎嘎叫~~");
    }
}
class GuGuQuack implements Quack{
    @Override
    public void quack() {
        System.out.println("鸭子咕咕叫~~");
    }
}
class NoQuack implements Quack{
    @Override
    public void quack() {
        System.out.println("鸭子不会叫~~");
    }
}